tools/libs/light: Remove unnecessary libxl_list_vm() call
authorCostin Lupu <costin.lupu@cs.pub.ro>
Mon, 19 Apr 2021 13:01:42 +0000 (16:01 +0300)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 22 Apr 2021 12:17:33 +0000 (13:17 +0100)
commitfe6cbbf163ec852d823379ab481c62044f92ea75
tree7907aa68c3ac532b36f3550fcca3343bd64ee2a4
parente0dc9b095e7c73dcf6dbfe5c87c33c4708da4d1f
tools/libs/light: Remove unnecessary libxl_list_vm() call

The removed lines were initially added by commit 314e64084d31, but the
subsequent code which was using the nb_vm variable was later removed by
commit 2ba368d13893, which makes these lines of code an overlooked
reminiscence. Moreover, the call becomes very expensive when there is a
considerable number of VMs (~1000 instances) running on the host.

Signed-off-by: Costin Lupu <costin.lupu@cs.pub.ro>
Acked-by: Wei Liu <wl@xen.org>
tools/libs/light/libxl_create.c